package com.buba.springcloud.dao;

import com.buba.springcloud.entities.HfCoupon;
import com.buba.springcloud.entities.HfCouponReceiveRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface DiscountMapper {
    List<HfCoupon> finddiscount(@Param("id") Integer id , @Param("status") Integer status);

    HfCouponReceiveRecord finddiscountById(@Param("id") Integer id , @Param("cid") Integer cid);

    void getCoupon(@Param("id") Integer id,@Param("cid") Integer cid);

    void Inventorydecline(@Param("resid")long resid  ,@Param("cid") Integer cid);

    HfCoupon findCouponById( @Param("cid") Integer cid);

    List<HfCoupon> findCouponByUid(@Param("id") Integer id);
}
